package com.datasource.datasourceslink;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;


@SpringBootApplication()
@EnableConfigurationProperties
@EnableScheduling////开启定时任务
@ServletComponentScan//扫面开启监听的注解方式
public class DatasourceslinkApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(DatasourceslinkApplication.class, args);
    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(DatasourceslinkApplication.class);
    }

}
